package net.alche.al.util.far.pojo;

public class ExceptionPack extends ResultPack {
  // fa-exception
  public static int FA_EXCEPTION = 401;
  // 数据不存在
  public static int DATA_DOT_FIND = 412;
  // 文件太长
  public static int FILE_TOO_LONG = 421;
  // 数据校验不通过
  public static int DATA_VALIDATE = 413;
  // 用户未登录
  public static int NO_LOGIN = 414;
  // 用户无权限
  public static int NO_RULE = 415;
  // 缺少参数
  public static int NO_PARAM = 416;
  // 请求路径不存在
  public static int PATH_NOT_FIND = 404;

  public ExceptionPack() {
    super.setState(0);
  }

  public ExceptionPack(String error) {
    super.setState(0);
    super.setMsg(error);
  }

  public ExceptionPack(int errorCode, String error) {
    super.setState(errorCode);
    super.setMsg(error);
  }

}